#ExtDNVoice- voice, ExtDNAM - am, ExtDNFax - fax, ExtDNNoAnswer - no answer, ExtDNBusy - busy

def cpd_asm_voice():
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNVoice)
  ExtDNVoice.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  if agDN:
    agDN.ReleaseCall()
  CPD1.CPDReleaseAllAgents(ACD1)

    
def cpd_asm_am():
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNAM)
  ExtDNAM.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  if agDN:
    agDN.ReleaseCall()
  CPD1.CPDReleaseAllAgents(ACD1)
   

def cpd_asm_fax():
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNFax)
  ExtDNFax.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  if agDN:
    agDN.ReleaseCall()
  CPD1.CPDReleaseAllAgents(ACD1)
   

def cpd_asm_no_answer():
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNNoAnswer)
  agDN = CPD1.CPDCompleteCall()
  CPD1.CPDReleaseAllAgents(ACD1)
 

def cpd_asm_busy():
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNBusy)
  agDN = CPD1.CPDCompleteCall()
  CPD1.CPDReleaseAllAgents(ACD1)
  
def cpd_asm_sit():
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNSIT)
  agDN = CPD1.CPDCompleteCall()
  CPD1.CPDReleaseAllAgents(ACD1)  
 

def cpd_asm_answer_busy_queue():
  Ag1.SetNotReady(ACD1)
  #Ag2.SetNotReady(ACD1)  
  #Ag3.SetNotReady(ACD1)
  #Ag4.SetNotReady(ACD1)
  CPD1.CPDSeizeAgent(ACD1)
  CPD1.CPDMakePredictiveCall(ExtDNVoice)
  ExtDNVoice.AnswerCall()
  agDN = CPD1.CPDCompleteCall()
  Ag1.SetReady(ACD1)
  #Ag2.SetReady(ACD1)
  #Ag3.SetReady(ACD1)  
  #Ag4.SetReady(ACD1)
  CPD1.CPDReleaseAllAgents(ACD1)
  
   
 

    
